package org.ibetyoudid.adjustremote;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import android.view.KeyEvent;

public class Params {
	//Logging options
	public static boolean LOGGING_ENABLED = false;
	public static String LOGGING_TAG = "RemoteAdjuster";
	
	//disable translation 
	public static boolean TRANSLATE_ENABLED = true;
	
	//if paused, don't translate (e.g.: allow switching tracks if paused) 
	public static boolean ONLY_TRANSLATE_WHILE_PLAYING = false;
	
	//TODO: make this configurable
	public static final Map<Integer, Integer> MY_MAP = createE160Map();

	/**
	 * create the static map for the HTC E160 RC
	 * @return
	 */
    private static Map<Integer, Integer> createE160Map() {
    	
        Map<Integer, Integer> result = new HashMap<Integer, Integer>();
        result.put(KeyEvent.KEYCODE_MEDIA_NEXT, KeyEvent.KEYCODE_VOLUME_DOWN);
        result.put(KeyEvent.KEYCODE_MEDIA_PREVIOUS, KeyEvent.KEYCODE_VOLUME_UP);
        
        return Collections.unmodifiableMap(result);
    }
	
}
